<?php
// +----------------------------------------------------------------------
// | 登录验证
// +----------------------------------------------------------------------
namespace app\common\validate;
use think\Validate;

class OrderGoods extends Validate
{

    //定义验证规则
    protected $rule =   [
        'order_id' => 'require',
        'goods_id' => 'require',
        'goods_count' => 'require',
        'price' => 'require'
    ];
    
    protected $message  =   [
        'order_id.require' => '订单id必填',
        'goods_id.require'  => '商品id必填',
        'goods_count.require'  => '商品数必填',
        'price.require'  => '商品价格必填'
    ];

}
